package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.sys.Resource;

import java.io.File;

/**
 * author: wxn
 * since: 13-2-4 Time: 上午11:29
 */
public interface ResourceService {
    Resource get(Long id);

    public void save(Resource resource);

    public LimitedList<Resource> find(Resource resource, Limit limit, Sorter sorter);

    public void delete(Long id);

    void initResource(File file) throws Exception;
}
